- 
		Home
	
 
	- 
WooCommerce Square
 
- 
4.1.0
 
- 
Code
 
- 
Classes
 
-  Background_Job_Handler 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											56 | 
										
																			
											| Dependencies | 
											2 | 
										
																			
											| Dependents | 
											0 | 
										
																	
							 
													
								
																			
											| Total lines | 
											728 | 
										
																			
											| Lines of code | 
											252 | 
										
																			
											| Logical lines of code | 
											137 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											314 | 
										
																			
											| Methods | 
											24 | 
										
																			
											| Properties | 
											8 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 24
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| get_jobs() | 
									S  | 
																	45 | 
													6 | 
													41 | 
							
					
				| get_job() | 
									S  | 
																	50 | 
													4 | 
													31 | 
							
					
				| fail_job() | 
									S  | 
																	58 | 
													4 | 
													16 | 
							
					
				| get_memory_limit() | 
									S  | 
																	62 | 
													4 | 
													11 | 
							
					
				| create_job() | 
									S  | 
																	51 | 
													3 | 
													25 | 
							
					
				| translate_success_message() | 
									S  | 
																	69 | 
													4 | 
													6 | 
							
					
				| complete_job() | 
									S  | 
																	61 | 
													3 | 
													13 | 
							
					
				| update_job() | 
									S  | 
																	62 | 
													3 | 
													12 | 
							
					
				| delete_job() | 
									S  | 
																	62 | 
													3 | 
													11 | 
							
					
				| handle_shutdown() | 
									S  | 
																	68 | 
													3 | 
													7 | 
							
					
				| is_queue_empty() | 
									S  | 
																	60 | 
													2 | 
													13 | 
							
					
				| lock_process() | 
									S  | 
																	68 | 
													2 | 
													6 | 
							
					
				| memory_exceeded() | 
									S  | 
																	64 | 
													2 | 
													9 | 
							
					
				| schedule_cron_healthcheck() | 
									S  | 
																	63 | 
													2 | 
													9 | 
							
					
				| schedule_event() | 
									S  | 
																	67 | 
													2 | 
													7 | 
							
					
				| __construct() | 
									S  | 
																	70 | 
													1 | 
													6 | 
							
					
				| add_hooks() | 
									S  | 
																	74 | 
													1 | 
													4 | 
							
					
				| is_process_running() | 
									S  | 
																	74 | 
													1 | 
													4 | 
							
					
				| unlock_process() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| complete() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| clear_scheduled_event() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| process_item() | 
									S  | 
																	100 | 
													1 | 
													0 | 
							
					
				| update_job_option() | 
									S  | 
																	66 | 
													1 | 
													8 | 
							
					
				| get_identifier() | 
									S  | 
																	82 | 
													1 | 
													3 |